﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Ict.DataAccess.Linq
{
    public abstract class ExecutableProvider
    {
        /// <summary>
        /// 查询执行对象实例，可以从外部赋值，也可以自动生成
        /// </summary>
        private Executor executor = null;
        public Executor Executor
        {
            get
            {
                if (executor == null)
                {
                    executor = DataContext.CreateExecutor();
                }
                return executor;
            }
            set
            {
                executor = value;
            }
        }
    }
}
